package com.yuyou.tas.admin.service;

import com.yuyou.tas.service.api.admin.dto.OfficeTokenDTO;
import com.yuyou.tas.service.api.lesson.entity.LessonResource;
import com.yuyou.tas.util.bean.LoginRedisObj;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

public interface IOfficeTokenService {

	OfficeTokenDTO view(LoginRedisObj user,String resourceId) throws Exception;
	
	OfficeTokenDTO edit(LoginRedisObj user,String resourceId) throws Exception;
	
	OfficeTokenDTO print(LoginRedisObj user,String resourceId) throws Exception;
	
	OfficeTokenDTO download(LoginRedisObj user,String resourceId) throws Exception;

	OfficeTokenDTO editNoCheck(String resourceId)
			throws Exception;

	/**
	 * 机构功能约束
	 * @param organId
	 * @param type
	 * @return
	 */
	ResBoolSimpleInfo<String> resFuncLim(Long organId, Integer type);
	
	/**
	 * 机构科目年级约束
	 * @param lessonResource
	 * @return
	 */
	ResBoolSimpleInfo<String> resPermLim(LoginRedisObj user,LessonResource lessonResource);
	
}
